diff options
| author | Adam Soltys <[email protected]> | 2023-05-03 10:25:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-05-26 11:47:16 -0700 |
| commit | 6fa039f234c850741851e0f97b03752b76f4b2a6 (patch) | |
| tree | 9bc8190f3da724785a5c0bf63479deda9bcb6d33 /src/routes/(app)/[username] | |
| parent | 5d0047eafbbd9132213ae0c116d6cf108d16670d (diff) | |
| download | coinos-ui-6fa039f234c850741851e0f97b03752b76f4b2a6.tar.gz coinos-ui-6fa039f234c850741851e0f97b03752b76f4b2a6.zip | |
onramper widget
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 69 |
1 files changed, 28 insertions, 41 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 7b81b797..02f5f9ea 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -84,54 +84,41 @@ <div class="flex justify-center lg:justify-start mb-8"> <Balance {user} /> </div> - + <div class="space-y-8 mt-8"> {#if !user.balance} - <div class="mb-8"> <p class="text-secondary text-lg"> {$t("user.welcome")} </p> - </div> - {/if} + {/if} - <div class="flex gap-4 justify-center w-full"> - <a href={`/${user.username}/receive`}> - <button - class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60" - > - <div class="mx-auto flex"> - <Icon icon="numpad" style="my-auto h-6 mr-2" /> - <div class="my-auto mt-1">{$t("user.requestPayment")}</div> - </div> - </button> - </a> - <a href={`/scan`}> - <button - class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60" - > - <div class="mx-auto flex"> - <Icon icon="scan" style="my-auto h-6 mr-2" /> - <div class="my-auto mt-1">{$t("user.send.scan")}</div> - </div> - </button> - </a> + <div class="flex gap-4 justify-center w-full"> + <a href={`/${user.username}/receive`}> + <button + class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60 bg-black text-white" + > + <div class="mx-auto flex"> + <Icon icon="numpad" style="my-auto h-6 mr-2 invert" /> + <div class="my-auto mt-1">Request Payment</div> + </div> + </button> + </a> - {#if user.eligible} - <a href={`/buy`}> - <button class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60"> - <div class="mx-auto flex"> - <!-- <Icon icon="plus" style="my-auto h-6 mr-2" /> --> + <a href={`/buy`}> + <button class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60"> + <div class="mx-auto flex"> + <!-- <Icon icon="plus" style="my-auto h-6 mr-2" /> --> - <img - src="/images/bitcoin.svg" - class="w-8 border-4 border-transparent mr-2" - alt="Bitcoin" - /> - <div class="my-auto mt-1">Buy Bitcoin</div> - </div> - </button> - </a> - {/if} - </div> + <img + src="/images/bitcoin.svg" + class="w-8 border-4 border-transparent mr-2" + alt="Bitcoin" + /> + <div class="my-auto mt-1">Buy Bitcoin</div> + </div> + </button> + </a> + </div> + </div> </div> {/if} |
